A5Storage::SubContainer CopyNewContentsTo Method
Syntax
.CopyNewContentsTo as L (TargetContainer as A5Storage::SubContainer)
Arguments
- TargetContainerA5Storage::SubContainer
The destination container where items are copied.
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
This function will copy all items that are newer to another SubContainer.
Example
dim SubContainer as A5Storage::SubContainer = null_value() dim TargetSubContainer as A5Storage::SubContainer = null_value() CallResult = A5Storage::SubContainer::Open(SubContainer, "Provider='Disk';Container='c:\A5Webroot';", "logs") ?CallResult.Success = .T. CallResult = A5Storage::SubContainer::Open(TargetSubContainer, "Provider='Disk';Container='c:\A5Webroot2';", "logs") ? CallResult.Success = .T. ? SubContainer.CopyNewContentsTo(TargetSubContainer) = .T.